package com.example.android.gestures;

/**
 * Represents a singular accelerometer reading.
 * 
 * @author Gospo
 * 
 */
public class AccRecord {
	private float x;
	private float y;
	private float z;
	long timestamp;

	/**
	 * Constructor
	 * 
	 * @param x
	 *            - acceleration value along the axis X
	 * @param y
	 *            - acceleration value along the axis Y
	 * @param z
	 *            - acceleration value along the axis Z
	 * @param timestamp
	 *            - time of the reading
	 */
	public AccRecord(float x, float y, float z, long timestamp) {
		super();
		this.x = x;
		this.y = y;
		this.z = z;
		this.timestamp = timestamp;
	}

	/**
	 * 
	 * @return Acceleration value along the axis X.
	 */
	public float getX() {
		return x;
	}

	/**
	 * 
	 * @return Acceleration value along the axis Y.
	 */
	public float getY() {
		return y;
	}

	/**
	 * 
	 * @return Acceleration value along the axis Z.
	 */
	public float getZ() {
		return z;
	}

	/**
	 * 
	 * @return Time of the reading.
	 */
	public long getTimestamp() {
		return timestamp;
	}
}